<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>实现strStr</title>
	</head>
	<body>
		<script>
			var str = 'hwwello';
			var toast = 'aaael';
			function show(string,match){
				console.log(string.indexOf(match));
			}
			show(str,toast);
		</script>
	</body>
</html>
